package com.java.boot.service;

import com.java.boot.properties.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 *  默认不要放在容器中
 * @author jingjintao
 * @date 2021/8/1 - 18:11
 **/
public class HelloService {

    @Autowired
    private HelloProperties helloProperties;
    public String sayHello(String userName){

        return helloProperties.getPrefix() +":"+userName+">"+ helloProperties.getSuffix();
    }
}
